<extend name="Public/base" />

<block name="body">
	<link href="__STATIC__/bootstrap/css/bootstrap.css" rel="stylesheet">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>
    
    <div class="container-fluid">
    
    
    	<div class="row">
    		<div class="form-group">
    			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
           		<button class="btn ajax-post confirm" url="{:U('del')}" target-form="ids">批量删除</button>
                <form class="form-inline" style="display:inline;" method="post" action="{:U('index')}" role="form">
	                <input type="text" class="form-control" name="name" placeholder="曲谱名称" value="{$_name}"/>
	                <button type="submit" class="btn btn-link">
	              		<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
	                </button>
                </form>
    		</div>
    	</div>
    
    
    <div class="row">
    	<div class="div_10"></div>
    </div>
    
    <!-- 数据列表 -->
    <div class="row">
	<table class="table">
    <thead>
        <tr>
		<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
		<th class="">ID</th>
		<th class="">曲谱名称</th>
		<th class="">用户id</th>
		<th class="">昵称</th>
		<th class="">评论内容</th>
		<th class="">创建时间</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_comment">
		<volist name="_comment" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
            <td>{$vo.id} </td>
			<td>{$vo.sheet_name}</td>
			<td>{$vo.user_id}</td>
			<td>{$vo.user_name}</td>
			<td>{$vo.remark}</td>
			<td>{$vo.create_time}</td>
			<td>
				<a title="删除" href="{:U('del?id='.$vo['id'])}">删除</a>
			</td>
		</tr>
		</volist>
		<else/>
		<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$_page}
    </div>
    </div>
</block>

<block name="script">
	<script src="__STATIC__/bootstrap/js/bootstrap.min.js"></script>
	<script src="__STATIC__/bootstrap-select/js/bootstrap-select.min.js"></script>

	<script type="text/javascript">

    //导航高亮
    highlight_subnav('{:U('SheetComment/index')}');
    $(function(){
    	
    });
	</script>
</block>
